<template>
  <div class="top">
    <!-- 内容区域 -->
    <div class="content">
      <!-- 左侧 -->
      <div
        class="left"
        @click="goHome"
      >
        <img src="../../assets/images/logo.png">
        <p>尚医通 预约挂号统一平台</p>
      </div>
      <div class="right">
        <p class="help">帮助中心</p>
        <p class="login">登录/注册</p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
// 引入路由器
import { useRouter } from 'vue-router';
const $router = useRouter()
const goHome = () => {
  // 编程式导航跳转到首页
  $router.push({ name: 'Home' })
}
</script>

<style scoped lang="scss">
.top {
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 70px;
  background: #fff;

  .content {
    display: flex;
    justify-content: space-between;
    width: 1200px;
    // height: 70px;
    height: 100%;
    background: #fff;

    .left {
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        margin-right: 10px;
        width: 50px;
        height: 50px;
      }

      p {
        font-size: 20px;
        color: #55a6fe;
      }
    }

    .right {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      color: #bbb;

      .help {
        margin-right: 10px;
      }
    }
  }
}
</style>